<?php

require_once APP_PATH.'/Controller/BaseController.php';
require_once APP_PATH.'/Model/ArticleModel.php';
require_once APP_PATH.'/Model/CategoryModel.php';

class IndexController extends BaseController {
	
	public function index(){
		$articleModel = new ArticleModel();
		$categoryModel = new CategoryModel();
		
		$this->assign('catelist',$categoryModel->getScrollData());
		$this->assign('indexArticle',$articleModel->getIndex());
		$this->assign('recommendArticle',$articleModel->getRecommend());
		$this->display('Index/index.html');
	}
	
}